package com.yunxin.websitebox.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunxin.websitebox.entity.WebsiteRole;

import java.util.List;
import java.util.Set;

/**
 * @Author: lcj
 * @Date: 2020/10/13 10:20
 * @Description: 角色管理业务接口
 * @Version: 0.0.1
 */
public interface WebsiteRoleService extends IService<WebsiteRole> {

    /**
     * 根据用户ID查询角色信息
     * @param userId
     * @return
     */
    Set<String> selectRoleCodesByUserId(Long userId);

    List<WebsiteRole> selectRoleByUserId(Long userId);


    Set<Long> selectRoleIdsByUserId(Long userId);

    List<Long> selectMenuIdsByRoleId(Long roleId);
}
